<script src="__CDN__/assets/libs/jquery/dist/jquery.min.js"></script>
<script src="__CDN__/assets/question/js/vue.js"></script>
<link rel="stylesheet" type="text/css" href="__CDN__/assets/question/css/common.css"></link>
<script src="__CDN__/assets/question/js/element-ui/index.js"></script>
<link rel="stylesheet" type="text/css" href="__CDN__/assets/question/js/element-ui/index.css"></link>

<div id="app">

    <form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('Question_cate_pid')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-question_cate_pid" data-rule="required" data-source="questioncate/selectpage" class="form-control selectpage" name="row[question_cate_pid]" type="text" value="" data-params='{"custom[pid]":"0"}'>
            </div>
        </div>
    
        <div class="form-group" id="question_cate_id">
            <label class="control-label col-xs-12 col-sm-2">{:__('Question_cate_id')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-question_cate_id" data-rule="required" data-source="questioncate/selectpage" class="form-control selectpage" name="row[question_cate_id]" type="text" value="">
            </div>
        </div>
        <!-- data-favisible="question_cate_id=4 or question_cate_id=5" -->
        <div class="form-group" >
            <label class="control-label col-xs-12 col-sm-2">{:__('省份/事业单位')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-question_cate_id3"  data-source="questioncate/selectpage" class="form-control selectpage" name="row[question_cate_id3]" type="text" value="">
            </div>
        </div>

    
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-name" class="form-control" name="row[name]" type="text">
            </div>
        </div>
    
    
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('Image')}:</label>
            <div class="col-xs-12 col-sm-8">
                <div class="input-group">
                    <input id="c-image" class="form-control" size="50" name="row[image]" type="text">
                    <div class="input-group-addon no-border no-padding">
                        <span><button type="button" id="faupload-image" class="btn btn-danger faupload" data-input-id="c-image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                        <span><button type="button" id="fachoose-image" class="btn btn-primary fachoose" data-input-id="c-image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                    </div>
                    <span class="msg-box n-right" for="c-image"></span>
                </div>
                <ul class="row list-inline faupload-preview" id="p-image"></ul>
            </div>
        </div>
       
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('固定选题')}:</label>
            <div class="col-xs-12 col-sm-8">
                <a href="javascript:;" class="btn btn-sm btn-success btn-fix-configs margin-bottom" @click="openQuestionSelect()"><i class="fa fa-cog"></i> 固定选题配置</a>
                {include file="../application/admin/view/questiongroup/configs_setting_fix.html" /}
            </div>
        </div>

        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('Num')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-num" class="form-control" name="row[num]" type="number">
            </div>
        </div>

        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
            <div class="col-xs-12 col-sm-8">
                <div class="radio">
                {foreach name="statusList" item="vo"}
                <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="normal"}checked{/in} /> {$vo}</label> 
                {/foreach}
                </div>
            </div>
        </div>
        <div class="form-group layer-footer">
            <label class="control-label col-xs-12 col-sm-2"></label>
            <div class="col-xs-12 col-sm-8">
                <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            </div>
        </div>
    </form>
</div>

{include file="../application/admin/view/questiongroup/extend.html" /}

